home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Full / Paragon Drive Backup 9 / DB90_SE_x64.msi / Data1.cab / _80BF381610B44CE4A1C700D475DE7D2A < prev    next >
Extensible Markup Language  |  2008-06-28  |  6KB  |  173 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <xsl:stylesheet
  4.   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.   xmlns:msxsl="urn:schemas-microsoft-com:xslt"
  6.   version="1.0">
  7.  
  8. <xsl:output
  9.   method="html"
  10.   version="4.0"
  11.   encoding="UTF-8"
  12.   omit-xml-declaration="yes"
  13.   indent="yes"/>
  14.  
  15. <xsl:template match="/Root">
  16.  
  17. <html>
  18.   <xsl:variable name="FSName" select="PropertyBag/Property[@name='PROPID_HDM_INTERNALFSNAME']"/>
  19.  
  20.   <TABLE>
  21.     <TR>
  22.       <TD align="left" colspan="2">
  23.         <xsl:choose>
  24.           <xsl:when test="$FSName='INVALID'">
  25.             <h2>QT_TRANSLATE_NOOP("QObject", "Invalid partition")</h2>
  26.           </xsl:when>
  27.           <xsl:when test="$FSName='NOTFORMATTED'">
  28.             <h2>QT_TRANSLATE_NOOP("QObject", "Not formatted partition")</h2>
  29.           </xsl:when>
  30.           <xsl:otherwise>
  31.         <h2><xsl:value-of select="PropertyBag/Property[@name='PROPID_DISPLAYNAME']"/></h2>
  32.           </xsl:otherwise>
  33.         </xsl:choose>
  34.         <img src="hline_gray"/>
  35.       </TD>
  36.     </TR>
  37.     <tr>
  38.       <td colspan="2" align="center">
  39.         <img src="C2CAA428-F14A-48d2-93D9-AA7580338E78"/>
  40.       </td>
  41.     </tr>
  42.     <tr>
  43.       <td colspan="2">
  44.         <img src="hline_gray"/>
  45.       </td>
  46.     </tr>
  47.  
  48.     <xsl:if test="$FSName != 'UNKNOWN' and $FSName != 'INVALID' and $FSName != 'NOTFORMATTED'">
  49.     <TR>
  50.       <TD align="right">
  51.         <nobr><b><xsl:value-of select="PropertyList/Property[@propname='PROPID_HDM_VOLUMELABEL']"/></b></nobr>
  52.       </TD>
  53.       <TD align="left">
  54.         <nobr><xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_VOLUMELABEL']"/></nobr>
  55.       </TD>
  56.     </TR>
  57.     </xsl:if>
  58.  
  59.     <xsl:if test="$FSName != 'INVALID'">
  60.     <TR>
  61.       <TD align="right">
  62.         <nobr><b><xsl:value-of select="PropertyList/Property[@propname='PROPID_HDM_FSNAME']"/></b></nobr>
  63.       </TD>
  64.       <TD align="left">
  65.           <nobr><xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_FSNAME']"/></nobr>
  66.       </TD>
  67.     </TR>
  68.  
  69.     <TR>
  70.       <TD align="right">
  71.         <nobr><b><xsl:value-of select="PropertyList/Property[@propname='PROPID_HDM_TYPESTRING']"/></b></nobr>
  72.       </TD>
  73.       <TD align="left">
  74.           <nobr><xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_TYPESTRING']"/></nobr>
  75.       </TD>
  76.     </TR>
  77.     <TR>
  78.       <TD align="right">
  79.         <nobr><b><xsl:value-of select="PropertyList/Property[@propname='PROPID_HDM_SIZESTRING']"/></b></nobr>
  80.       </TD>
  81.       <TD align="left">
  82.         <nobr><xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_SIZESTRING']"/></nobr>
  83.       </TD>
  84.     </TR>
  85.     <tr>
  86.       <TD>
  87.       </TD>
  88.       <TD align="left">
  89.         <nobr><xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_SIZESTRING_LONG']"/></nobr>
  90.       </TD>
  91.     </tr>
  92.     <tr>
  93.       <TD>
  94.       </TD>
  95.       <TD align="left">
  96.         <nobr><xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_SIZEINSECTORS_STRING']"/></nobr>
  97.       </TD>
  98.     </tr>
  99.     </xsl:if>
  100.  
  101.     <xsl:if test="$FSName = 'INVALID'">
  102.         <TR>
  103.           <TD align="right">
  104.             <nobr><b>QT_TRANSLATE_NOOP("QObject", "File system type")</b></nobr>
  105.           </TD>
  106.           <TD align="left">
  107.             <p>
  108.                 QT_TRANSLATE_NOOP("QObject", "Unknown")
  109.             </p>
  110.             <p>
  111.               QT_TRANSLATE_NOOP("QObject", "<ProductName> has discovered problems with this partition. It must have been caused by an incorrect geometry. In order to resolve the issue, please collect LOG-files and send them to our Support Team")
  112.             </p>
  113.           </TD>
  114.         </TR>
  115.     </xsl:if>
  116.  
  117.  
  118.     <xsl:if test="$FSName != 'UNKNOWN' and $FSName != 'INVALID' and $FSName != 'NOTFORMATTED'">
  119.       <TR>
  120.         <TD align="right">
  121.           <nobr><b><xsl:value-of select="PropertyList/Property[@propname='PROPID_HDM_DATASIZESTRING']"/></b></nobr>
  122.         </TD>
  123.         <TD align="left">
  124.           <nobr><xsl:value-of select="concat(PropertyBag/Property[@name='PROPID_HDM_DATASIZESTRING'],' (',PropertyBag/Property[@name='PROPID_HDM_USEDPERCENT'],'%)')"/></nobr>
  125.         </TD>
  126.       </TR>
  127.       <TR>
  128.         <TD>
  129.         </TD>
  130.         <TD align="left">
  131.           <nobr><xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_DATASIZESTRING_LONG']"/></nobr>
  132.         </TD>
  133.       </TR>
  134.       <TR>
  135.         <TD>
  136.         </TD>
  137.         <TD align="left">
  138.           <nobr><xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_DATASIZESECTORS_STRING']"/></nobr>
  139.         </TD>
  140.       </TR>
  141.       <TR>
  142.         <TD align="right">
  143.           <nobr><b><xsl:value-of select="PropertyList/Property[@propname='PROPID_HDM_FREESIZESTRING']"/></b></nobr>
  144.         </TD>
  145.         <TD align="left">
  146.           <nobr><xsl:value-of select="concat(PropertyBag/Property[@name='PROPID_HDM_FREESIZESTRING'],' (',PropertyBag/Property[@name='PROPID_HDM_FREEPERCENT'],'%)')"/></nobr>
  147.         </TD>
  148.       </TR>
  149.       <TR>
  150.         <TD>
  151.         </TD>
  152.         <TD align="left">
  153.           <nobr><xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_FREESIZESTRING_LONG']"/></nobr>
  154.         </TD>
  155.       </TR>
  156.       <TR>
  157.         <TD>
  158.         </TD>
  159.         <TD align="left">
  160.           <nobr><xsl:value-of select="PropertyBag/Property[@name='PROPID_HDM_FREESIZESECTORS_STRING']"/></nobr>
  161.         </TD>
  162.       </TR>
  163.     </xsl:if>
  164.  
  165.   </TABLE>
  166.  
  167. </html>
  168. </xsl:template>
  169.  
  170. </xsl:stylesheet>
  171.  
  172.  
  173.